<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale-1">
    <title>批次线查询</title>
    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/bootstrap/css/bootstrap-submenu.css">
<!--    <link rel="stylesheet"-->
<!--          href="${pageContext.request.contextPath}/css/bootstrap.min.css">-->
<!--    <link rel="stylesheet"-->
<!--          href="${pageContext.request.contextPath}/css/bootstrap-submenu.css">-->
    <style>

        /* 省份样式 */
        .province1 ul li {
            margin-left: 20px;
            font-size: 20px;
            margin-top: 10px;
        }

        /* 字体垂直居中 */
        .scoreTable  tbody tr td{
            vertical-align: middle;
        }
        .title1 {
            background: #428bca;
            color: white;

        }
        .title1 th
        {
            text-align: center;

        }

    </style>
</head>
</head>
<!--<%! int privinceNowPage ;//当前页数-->
<!--int page1;//总共页数-->

<!--%>-->
<!--<%-->
<!--privinceNowPage =Integer.parseInt(session.getAttribute("privinceNowPage").toString());-->
<!--page1 =Integer.parseInt(session.getAttribute("privinceSumPage1").toString());-->
<!--System.out.println("jsp");-->
<!--System.out.println(page1);-->
<!--%>-->
<body id="fontSize">
<!-- 导航栏 -->
<div class="container" id="frontTop"></div>

<!-- 全国高考分数线 -->
<div class="container">
    <div class="page-header text-center">
        <h1>2019年全国高考分数线最新发布</h1>
    </div>
    <!--省份province1-->
    <div class="container province1">


        <ul class="list-inline row">
            <li class="col-md-1">省份:</li>
            <c:forEach items="${listAllPrivinces}" var ="privince">
                <li class="col-md-1" >
                    <a href="${privince.provinceId}">${privince.provinceName}</a>
                </li>
            </c:forEach>
        </ul>

    </div>

    <!--各个地区录取分数详情  -->
    <div class="container">
        <table style="width: 100%;" class="scoreTable table  table-bordered " >
            <thead>
            <tr class="title1">
                <th>招生地区</th>
                <th>录取批次</th>
                <th>文科</th>
                <th>理科</th>
                <th>按投档分查院校</th>
                <th>按投档名次查院校</th>
                <th>历年分数线</th>
            </tr>
            </thead>
            <tbody class="text-center">
            <c:forEach items="${listPrivinces}" var ="privinces">
                <c:choose>
                    <c:when test="${privinces.secProvControlLine !=null && privinces.firstProvControlLine!=null &&privinces.specProvControlLine!=null&&privinces.thirdProvControlLine!=null}">
                        <tr id="${privinces.provinceId}">
                            <td rowspan="4">${privinces.provinceName}</td>
                            <td>本科一批</td>
                            <td>${privinces.firstProvControlLine}</td>
                            <td>${privinces.firstProvControlLine}</td>
                            <td><input type="button" class="btn btn-default" value="查询"/></td>
                            <td><input  type="button" class="btn btn-default" value="查询"/></td>
                            <td rowspan="4" ><a href="previousYearEnrollmentScoreLine?id=${privinces.provinceId}" privinces >查看》</a></td>
                        </tr>
                        <tr>
                            <td>本科二批</td>
                            <td>${privinces.secProvControlLine}</td>
                            <td>${privinces.secProvControlLine}</td>
                            <td><input type="button" class="btn btn-default" value="查询"/></td>
                            <td><input  type="button" class="btn btn-default" value="查询"/></td>
                        </tr>
                        <tr>
                            <td>本科三批</td>
                            <td>${privinces.thirdProvControlLine}</td>
                            <td>${privinces.thirdProvControlLine}</td>
                            <td><input type="button" class="btn btn-default" value="查询"/></td>
                            <td><input  type="button" class="btn btn-default" value="查询"/></td>
                        </tr>
                        <tr>
                            <td>高职专科批</td>
                            <td>${privinces.specProvControlLine}</td>
                            <td>${privinces.specProvControlLine}</td>
                            <td><input type="button" class="btn btn-default" value="查询"/></td>
                            <td><input  type="button" class="btn btn-default" value="查询"/></td>
                        </tr>

                    </c:when>


                    <c:when test="${privinces.secProvControlLine !=null && privinces.firstProvControlLine!=null &&privinces.specProvControlLine!=null}">
                        <tr id="${privinces.provinceId}">
                            <td rowspan="3">${privinces.provinceName}</td>
                            <td>本科一批</td>
                            <td>${privinces.firstProvControlLine}</td>
                            <td>${privinces.firstProvControlLine}</td>
                            <td><input type="button" class="btn btn-default" value="查询"/></td>
                            <td><input  type="button" class="btn btn-default" value="查询"/></td>
                            <td rowspan="3" ><a href="previousYearEnrollmentScoreLine?id=${privinces.provinceId}"  >查看》</a></td>
                        </tr>
                        <tr>
                            <td>本科二批</td>
                            <td>${privinces.secProvControlLine}</td>
                            <td>${privinces.secProvControlLine}</td>
                            <td><input type="button" class="btn btn-default" value="查询"/></td>
                            <td><input  type="button" class="btn btn-default" value="查询"/></td>
                        </tr>
                        <tr>
                            <td>高职专科批</td>
                            <td>${privinces.specProvControlLine}</td>
                            <td>${privinces.specProvControlLine}</td>
                            <td><input type="button" class="btn btn-default" value="查询"/></td>
                            <td><input  type="button" class="btn btn-default" value="查询"/></td>
                        </tr>
                    </c:when>


                    <c:when test="${privinces.firstProvControlLine!=null && privinces.secProvControlLine !=null }">
                        <tr id="${privinces.provinceId}">
                            <td rowspan="2">${privinces.provinceName}</td>
                            <td>本科一批</td>
                            <td>${privinces.firstProvControlLine}</td>
                            <td>${privinces.firstProvControlLine}</td>
                            <td><input type="button" class="btn btn-default" value="查询"/></td>
                            <td><input  type="button" class="btn btn-default" value="查询"/></td>
                            <td rowspan="2" ><a href="previousYearEnrollmentScoreLine?id=${privinces.provinceId}"  >查看》</a></td>
                        </tr>
                        <tr>
                            <td>本科二批</td>
                            <td>${privinces.secProvControlLine}</td>
                            <td>${privinces.secProvControlLine}</td>
                            <td><input type="button" class="btn btn-default" value="查询"/></td>
                            <td><input  type="button" class="btn btn-default" value="查询"/></td>
                        </tr>
                    </c:when>
                    <c:otherwise>
                    </c:otherwise>
                </c:choose>
            </c:forEach>
            </tbody>


        </table>
        <ul class="pagination">
            <li style="margin-left: 250px"><a class="btn btn-primary firstPage" href="batchLineQuery?pageNum=1&pageSize=6">首页</a></li>
            <li><a class="prePage btn  btn-primary" href="batchLineQuery?pageNum=${privinceNowPage-1}&pageSize=6">上一页</a></li>


            <c:forEach var ="i" begin="1" end="${privinceSumPage1}" step="1" >

                <li><a class="btn btn-primary pageNum${i} " href="batchLineQuery?pageNum=${i}&pageSize=6">${i}</a></li>
            </c:forEach>

            <li ><a class="btn btn-primary nextPage" href="batchLineQuery?pageNum=${privinceNowPage+1}&pageSize=6">下一页</a></li>
            <li ><a class="btn btn-primary lastPage" href="batchLineQuery?pageNum=${privinceSumPage1}&pageSize=6">末尾</a></li>

        </ul>

    </div>


</div>

<!--底部信息  -->

<div class="container" id="frontBottom"></div>
<!-- jq引用 -->
<script src="${pageContext.request.contextPath}/js/jquery-3.3.0.js"
        type="text/javascript"></script>
<!-- bootstrap引用 -->
<!--<script src="${pageContext.request.contextPath}/js/bootstrap.min.js"-->
        <!--type="text/javascript"></script>-->
<!--<script src="js/jquery-3.3.0.js"></script>-->
<!--<script src="js/bootstrap.min.js"></script>-->

<!--<script type="text/javascript">-->

<!--    $(function(){-->
<!--    <%&#45;&#45; 	alert(".pageNum"+<%=privinceNowPage%>+"");	 &#45;&#45;%>-->
<!--        for(var i=1;i<=<%=page1%>;i++)-->
<!--        {-->
<!--            if(i==<%=privinceNowPage%>)-->
<!--                $(".pageNum"+i+"").addClass("disabled");-->
<!--            else {-->
<!--                $(".pageNum"+i+"").removeClass("disabled");-->
<!--            }-->
<!--        }-->
<!--    <%  if(privinceNowPage==page1){-->
<!--        %>-->


<!--            $(".nextPage").addClass("disabled");-->
<!--            $(".lastPage").addClass("disabled");-->

<!--        <%}-->
<!--        else{%>-->

<!--            $(".nextPage").removeClass("disabled");-->
<!--            $(".lastPage").removeClass("disabled");-->

<!--        <%}-->
<!--    %>-->

<!--    <%  if(privinceNowPage==1){-->
<!--        %>-->
<!--            $(".firstPage").addClass("disabled");-->
<!--            $(".prePage").addClass("disabled");-->
<!--        <%-->
<!--        }-->
<!--        else{-->
<!--        %>-->
<!--            $(".firstPage").removeClass("disabled");-->
<!--            $(".prePage").removeClass("disabled");-->
<!--        <%}-->
<!--    %>-->
<!--    })-->
<!--</script>-->
</body>
<script src="/js/jquery-3.3.0.js"></script>
<script src="/layui/layui.js"></script>
<script src="/js/core.util.js"></script>
<script src="/bootstrap/bootstrap.min.js"></script>
<!--<script src="/js/publicSection.js"></script>-->
<script>
    $("#frontTop").load("/index/frontTop");
    $("#frontBottom").load("/index/frontBottom");
</script>
</html>